package com.qf.controller;

import com.qf.pojo.CheckGroup;
import com.qf.service.CheckGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin(origins = "http://localhost:82")
@RestController
@RequestMapping("checkgroup")
public class CheckGroupController {
    @Autowired
    private CheckGroupService checkGroupService;

    @GetMapping("findById")
    List<CheckGroup> findById(Integer id) {
        return checkGroupService.findById(id);
    }
}
